/**
 * @title TodayCell.java
 * @package com.esun.cheetah.view.custom.calendar
 * @description 
 * @author liugan
 * @date 2012-4-14
 * @copyright 深圳市易讯天空
 */
package com.esun.cheetah.view.custom.calendar;

import com.esun.cheetah.R;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.NinePatch;
import android.graphics.Paint;
import android.graphics.Rect;

/**
 * @title TodayCell
 * @description
 * @author liugan
 */
public class TodayCell extends ThisMonthCell {

	private NinePatch mNinePatch;

	/**
	 * @param dayOfMon
	 * @param rect
	 */
	public TodayCell(Context context, int dayOfMon, Rect rect) {
		super(context, dayOfMon, rect);
		Bitmap mBitmap = BitmapFactory.decodeResource(context.getResources(),
				R.drawable.btn_default_today);
		mNinePatch = new NinePatch(mBitmap, mBitmap.getNinePatchChunk(), null);
	}

	@Override
	protected void drawNormalBackground(Canvas canvas) {
		mNinePatch.draw(canvas, mBound);
	}

	@Override
	protected Paint getNormalPaint() {
		Paint mPaint = new Paint();
		mPaint.setColor(Color.WHITE);
		return mPaint;
	}

}
